package com.kate.mall.coupon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kate.mall.common.utils.PageUtils;
import com.kate.mall.coupon.entity.CouponEntity;

import java.math.BigDecimal;
import java.util.Map;
import java.util.Optional;

/**
 * 优惠券信息及规则表
 *
 * @author kate-chan
 * @email 857782993@qq.com
 * @date 2022-12-26 16:38:12
 */
public interface CouponService extends IService<CouponEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Optional<CouponEntity> checkCoupon(Integer userId, Integer couponId, Integer tempUserCouponId, BigDecimal checkedGoodsPrice);
}

